package com.avocado.commons.model.http;


/**
 * 响应状态
 * @author xuwenfeng
 *
 */
public enum BaseResponseStatus{
	
	/**
	 * 操作失败
	 */
	FAILED(0,"操作失败!"),
	/**
	 * 操作成功
	 */
	SCCUCESS(1,"操作成功!"),
	/**
	 * 对象不存在
	 */
	FAILED_OBJECT_NOT_EXIST(2,"操作失败,对象不存在!"),
	/**
	 * 对象不属于当前用户
	 */
	FAILED_OBJECT_NOT_BELONGS_TO_LOGIN_USER_EXIST(3,"操作失败,对象不属于当前用户!");
	
	private  Integer index;
	
	private String name;
	
    private BaseResponseStatus(int index, String name) {
		this.index = index;
		this.name = name;
	}

    public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

 

}
